package com.juyu.miliao.common.exception;

import com.juyu.miliao.common.msg.ErrorMsg;
import lombok.Data;
import org.springframework.http.HttpStatus;

/**
 * @author xuanqicheng
 * @create 2019-04-17:37
 */
@Data
public class SecretLanguagePlanetException extends RuntimeException {

    private ErrorMsg errorMsg;

    public SecretLanguagePlanetException(String code, String msg) {
        super(msg);

        this.errorMsg = new ErrorMsg(HttpStatus.BAD_REQUEST, code, msg);
    }

}
